﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="productImport.aspx.cs" Inherits="MxWeiXinPF.Web.shopmgr.product.productImport" %>


<%@ Import Namespace="MxWeiXinPF.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <script type="text/javascript">
        function check() {  
            var k='//S+/.[xls]/';  
            if(!k.test(document.getElementById("fileId").value))  
            {  
                alert("只能上次xls格式的文件");  
                return false;  
            }  
            return true;  
        }  
    </script>
</head>  
<body>  
    <form id="form1" runat="server">  
    <div>  
        <asp:FileUpload ID="FileUpload1" runat="server" />  
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" OnClientClick="return check()" Text="上传" />  
        <asp:Button ID="btndownfile" runat="server" Text="模板下载" 
        onclick="btndownfile_Click" /></br>
    </div>  
    </form>  
</body>  
</html>  